import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {WasherListComponent} from './washer-list/washer-list.component';
import {WasherDetailComponent} from './washer-detail/washer-detail.component';
import {AuthGuard} from '../shared/auth.guard';

const routes: Routes = [
  {path: '', component: WasherListComponent, canActivate: [AuthGuard]},
  {path: ':id', component: WasherDetailComponent, canActivate: [AuthGuard]}
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ]
})

export class WashersRoutingModule {}
